# $FreeBSD$

PORTNAME=	circus
PORTVERSION=	0.5.2
CATEGORIES=	sysutils python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	Process and socket manager

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/psutil/__init__.py:${PORTSDIR}/sysutils/py-psutil \
	${PYTHON_PKGNAMEPREFIX}iowait>=0.1:${PORTSDIR}/sysutils/py-iowait \
	${PYTHON_SITELIBDIR}/zmq/__init__.py:${PORTSDIR}/devel/py-pyzmq

# We need green poller (see circus/__init__.py)
.if !exists(${PYTHON_SITELIBDIR}/zmq/green/__init__.py)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/gevent_zeromq/__init__.py:${PORTSDIR}/devel/py-gevent-zeromq
.endif

USE_PYTHON=	2.7
USE_PYDISTUTILS=	easy_install

.include <bsd.port.mk>
